package com.springboot.love.service.impl;

import com.springboot.love.dao.AnswerDao;
import com.springboot.love.entity.Answer;
import com.springboot.love.service.AnswerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AnswerServiceImpl implements AnswerService {

    @Resource
    private AnswerDao answerDao;
    @Override
    public List<Answer> findBypostId(List<Integer> postId) {
        return answerDao.selectBypostId(postId);
    }
}
